\hypertarget{classsc2_1_1_action_feature_layer_interface}{}\section{sc2\+:\+:Action\+Feature\+Layer\+Interface Class Reference}
\label{classsc2_1_1_action_feature_layer_interface}\index{sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}}


{\ttfamily \#include $<$sc2\+\_\+interfaces.\+h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{classsc2_1_1_action_feature_layer_interface_a425ea9449bdde698047f2b32eae44f62}{Unit\+Command} (\hyperlink{classsc2_1_1_s_c2_type}{Ability\+ID} ability)=0
\item 
virtual void \hyperlink{classsc2_1_1_action_feature_layer_interface_a8d58e436d717242917645d27e772999f}{Unit\+Command} (\hyperlink{classsc2_1_1_s_c2_type}{Ability\+ID} ability, const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&point, bool minimap=false)=0
\item 
\mbox{\Hypertarget{classsc2_1_1_action_feature_layer_interface_a6d41928e74a3988ff218047e6ce7f1d9}\label{classsc2_1_1_action_feature_layer_interface_a6d41928e74a3988ff218047e6ce7f1d9}} 
virtual void \hyperlink{classsc2_1_1_action_feature_layer_interface_a6d41928e74a3988ff218047e6ce7f1d9}{Camera\+Move} (const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&center)=0
\begin{DoxyCompactList}\small\item\em Moves the camera to be centered around a position. Coordinate is position on minimap feature layer. \end{DoxyCompactList}\item 
virtual void \hyperlink{classsc2_1_1_action_feature_layer_interface_ae61f19efc78b6114d91ca64f1fb72108}{Select} (const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&center, Point\+Selection\+Type selection\+\_\+type)=0
\item 
virtual void \hyperlink{classsc2_1_1_action_feature_layer_interface_a084b4cd006586c0a9637b1067a437a42}{Select} (const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&p0, const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&p1, bool add\+\_\+to\+\_\+selection=false)=0
\item 
virtual void \hyperlink{classsc2_1_1_action_feature_layer_interface_ab9f434ec52e62fac77dcb99f9cc81080}{Send\+Actions} ()=0
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \hyperlink{classsc2_1_1_action_feature_layer_interface}{Action\+Feature\+Layer\+Interface} emulates UI actions in feature layer. Not available in replays. Guaranteed to be valid when the On\+Step event is called. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{classsc2_1_1_action_feature_layer_interface_ae61f19efc78b6114d91ca64f1fb72108}\label{classsc2_1_1_action_feature_layer_interface_ae61f19efc78b6114d91ca64f1fb72108}} 
\index{sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}!Select@{Select}}
\index{Select@{Select}!sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}}
\subsubsection{\texorpdfstring{Select()}{Select()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void sc2\+::\+Action\+Feature\+Layer\+Interface\+::\+Select (\begin{DoxyParamCaption}\item[{const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&}]{center,  }\item[{Point\+Selection\+Type}]{selection\+\_\+type }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Selection of a point, equivalent to clicking the mouse on a unit. 
\begin{DoxyParams}{Parameters}
{\em center} & The feature layer \textquotesingle{}pixel\textquotesingle{} being clicked on. \\
\hline
{\em selection\+\_\+type} & Any modifier keys, for example if \textquotesingle{}shift-\/click\textquotesingle{} is desired. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classsc2_1_1_action_feature_layer_interface_a084b4cd006586c0a9637b1067a437a42}\label{classsc2_1_1_action_feature_layer_interface_a084b4cd006586c0a9637b1067a437a42}} 
\index{sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}!Select@{Select}}
\index{Select@{Select}!sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}}
\subsubsection{\texorpdfstring{Select()}{Select()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void sc2\+::\+Action\+Feature\+Layer\+Interface\+::\+Select (\begin{DoxyParamCaption}\item[{const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&}]{p0,  }\item[{const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&}]{p1,  }\item[{bool}]{add\+\_\+to\+\_\+selection = {\ttfamily false} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Selection of an area, equivalent to click-\/dragging the mouse over an area of the screen. 
\begin{DoxyParams}{Parameters}
{\em p0} & The feature layer pixel where the first click occurs (mouse button down). \\
\hline
{\em p1} & The feature layer pixel where the drag release occurs (mouse button up). \\
\hline
{\em add\+\_\+to\+\_\+selection} & Will add newly selected units to an existing selection. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classsc2_1_1_action_feature_layer_interface_ab9f434ec52e62fac77dcb99f9cc81080}\label{classsc2_1_1_action_feature_layer_interface_ab9f434ec52e62fac77dcb99f9cc81080}} 
\index{sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}!Send\+Actions@{Send\+Actions}}
\index{Send\+Actions@{Send\+Actions}!sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}}
\subsubsection{\texorpdfstring{Send\+Actions()}{SendActions()}}
{\footnotesize\ttfamily virtual void sc2\+::\+Action\+Feature\+Layer\+Interface\+::\+Send\+Actions (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

This function sends out all batched selection and unit commands. You DO N\+OT need to call this function in non real time simulations since it is automatically called when stepping the simulation forward. You only need to call this function in a real time simulation. \mbox{\Hypertarget{classsc2_1_1_action_feature_layer_interface_a425ea9449bdde698047f2b32eae44f62}\label{classsc2_1_1_action_feature_layer_interface_a425ea9449bdde698047f2b32eae44f62}} 
\index{sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}!Unit\+Command@{Unit\+Command}}
\index{Unit\+Command@{Unit\+Command}!sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}}
\subsubsection{\texorpdfstring{Unit\+Command()}{UnitCommand()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void sc2\+::\+Action\+Feature\+Layer\+Interface\+::\+Unit\+Command (\begin{DoxyParamCaption}\item[{\hyperlink{classsc2_1_1_s_c2_type}{Ability\+ID}}]{ability }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Issues a command to whatever is selected. Self targeting. 
\begin{DoxyParams}{Parameters}
{\em ability} & The ability id of the command. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classsc2_1_1_action_feature_layer_interface_a8d58e436d717242917645d27e772999f}\label{classsc2_1_1_action_feature_layer_interface_a8d58e436d717242917645d27e772999f}} 
\index{sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}!Unit\+Command@{Unit\+Command}}
\index{Unit\+Command@{Unit\+Command}!sc2\+::\+Action\+Feature\+Layer\+Interface@{sc2\+::\+Action\+Feature\+Layer\+Interface}}
\subsubsection{\texorpdfstring{Unit\+Command()}{UnitCommand()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void sc2\+::\+Action\+Feature\+Layer\+Interface\+::\+Unit\+Command (\begin{DoxyParamCaption}\item[{\hyperlink{classsc2_1_1_s_c2_type}{Ability\+ID}}]{ability,  }\item[{const \hyperlink{structsc2_1_1_point2_d_i}{Point2\+DI} \&}]{point,  }\item[{bool}]{minimap = {\ttfamily false} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Issues a command to whatever is selected. Uses a point as a target for the command. 
\begin{DoxyParams}{Parameters}
{\em ability} & The ability id of the command. \\
\hline
{\em point} & The 2D world position to target. \\
\hline
{\em minimap} & Target in the minimap instead of the map. \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
include/sc2api/\hyperlink{sc2__interfaces_8h}{sc2\+\_\+interfaces.\+h}\end{DoxyCompactItemize}
